<%@ page import="cn.edu.zut.model.Reader" %>
<%@ page import="cn.edu.zut.service.ReaderServiceImpl" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/6/19/019
  Time: 20:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>修改</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <style>
        .form1{
            margin:0 auto ;
            width:400px;
        }
    </style>
</head>
<body>
<%!String Id;
    String name;%>
<%
    Id=request.getParameter("id");
    name=request.getParameter("name");
%>
<div class="form1">
    <form method="get" action="/readerUpdate">
        <div class="form-group" style="width: 330px;margin-top: 30px;">
            <P> 读者id：</P> <input   type="text" class="form-control"  value="<%=Id%>" name="readerId" required="required" readonly="true">
        </div>
        <div class="form-group" style="width: 330px;">
            <P> 读者类型：</P>
            <select name="type">
                <option value="1">教师</option>
                <option value="2">学生</option>
            </select>
        </div>
        <div class="form-group" style="width: 330px;margin-top: 30px;">
            <P> 姓名：</P> <input  type="text" class="form-control"  value="<%=name%>" name="name" required="required">
        </div>
        <div class="form-group" style="width: 330px;margin-top: 30px;">
            <P> 年龄：</P> <input  type="text" class="form-control"  name="age" required="required">
        </div>
            <div class="form-group" style="width: 330px;">
                <P>性别：</P>
                <label><input name="sex" type="radio" class="form-control"  value="男" />男 </label>
                <label><input name="sex" type="radio" class="form-control"  value="女" />女</label>
            </div>
        <div class="form-group" style="width: 330px;margin-top: 30px;">
            <P> 电话：</P> <input  type="text" class="form-control"  name="phone" required="required">
        </div>
        <div class="form-group" style="width: 330px;margin-top: 30px;">
            <P> 所在部门：</P> <input  type="text" class="form-control"  name="dept" required="required">
        </div>
            <button style="color: #2e6da4" type="submit" class="btn btn-default">修 改</button>
    </form>
</div>
</body>
</html>
